﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = ElectronicEquipment
		Group                          = Coprocessors
		Module                         = cerebellum-1000 coprocessor
		ReactorUsage                   = 3.00 RP
		Type                           = Passive
		Slot                           = Head
		TechnologicalLevel             = T3
		Mass                           = 0.20 kg
		PackedVolume                   = 0.00 U
		Volume                         = 0.010000 U
		CpuPerformance                 = 15.00 %
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Cerebellum-1000 coprocessor module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:54</remarks>
    public sealed class Cerebellum1000Coprocessor : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="Cerebellum1000Coprocessor"/> class.
        /// </summary>
        public Cerebellum1000Coprocessor()
            : base(
            "Cerebellum-1000 coprocessor",
            "",
            ModuleMetaGroupsEnum.ElectronicEquipment,
            ModuleGroupsEnum.Coprocessors,
            TechnologyLevelsEnum.Level3,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(ReactorUsage<double>),3.00),
				new LazyFeature(typeof(ModuleMass<double>),0.20), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 0.20 ){ IsVisible = false },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.CpuPerformance, 0.15 ){ Unit = UnitsEnum.Percentage, DisplayName = "Cpu Performance" }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Passive; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Head; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}